<%@page contentType="text/html;charset=utf-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
   <table width="100%" border="0" cellspacing="0" cellpadding="0" >
   <tr style="visibility: true">
   <s:iterator value="spplist" status="stat">
   <s:if test="#stat.index>0&&#stat.index%8==0"></tr><tr></s:if>
   <td width="10%" class="table_w2" align="left">&nbsp;&nbsp;
   <input type="checkbox" onclick="manager_productcode_checkcodeprovince(this);" 
   <s:if test="(','+model.productCodeOpenProvince+',').indexOf(','+provinceCode+',')!=-1">
   checked</s:if> id="model.productCodeOpenProvince" name ="model.productCodeOpenProvince" value="<s:property value="provinceCode" />">
   &nbsp;<s:property value="%{getProvince(provinceCode).name}" /></td>
   </s:iterator>
   <s:if test="spplist.size()%8!=0"><td colspan="<s:property value="8-spplist.size()%8"/>" ></td></s:if></tr>
   </table>
   <table width="100%" border="0" cellspacing="0" cellpadding="0" >
   <tr id="open_province_caption" style="display:<s:if test="model.productCodeOpenProvince.length()>1"></s:if><s:else>none</s:else>">
   <td class="table_g2" width="10%" align="center" >省份</td>
   <td class="table_g2" width="7%" align="center" >日限</td>
   <td class="table_g2" width="7%" align="center" >月限</td>
   <td class="table_g2" width="9%" align="center" >日承载量</td>
   <td class="table_g2" width="9%" align="center" >月承载量</td>
   </tr>
   <s:iterator value="spplist" status="stat">
   <tr id="open_province_<s:property value="provinceCode" />" style="display:<s:if test="(','+model.productCodeOpenProvince+',').indexOf(','+provinceCode+',')!=-1"></s:if><s:else>none</s:else>">
   <s:set name="codeProvince" value="%{getProductCodeProvince(model, provinceCode, spplist, plist)}" />
   <td class="table_w2" align="center"><s:property value="%{getProvince(provinceCode).name}" /><input type="hidden" id="open_province_<s:property value="provinceCode" />_code_province_id" value="<s:property value="#codeProvince.cpCodeProvinceId" />" ></td>
   <td class="table_w2" align="center"><input type="text" size="2" value="<s:property value="#codeProvince.dailyLimit" />" id="open_province_<s:property value="provinceCode" />_daily_limit" name="open_province_<s:property value="provinceCode" />_daily_limit"/></td>
   <td class="table_w2" align="center"><input type="text" size="2" value="<s:property value="#codeProvince.monthlyLimit" />" id="open_province_<s:property value="provinceCode" />_monthly_limit" name="open_province_<s:property value="provinceCode" />_monthly_limit"/></td>
   <td class="table_w2" align="center"><input type="text" size="3" value="<s:property value="#codeProvince.dailyCapacity" />" id="open_province_<s:property value="provinceCode" />_daily_capacity" name="open_province_<s:property value="provinceCode" />_daily_capacity"/></td>        
   <td class="table_w2" align="center"><input type="text" size="3" value="<s:property value="#codeProvince.monthlyCapacity" />" id="open_province_<s:property value="provinceCode" />_monthly_capacity" name="open_province_<s:property value="provinceCode" />_monthly_capacity"/></td>
   </tr>
   </s:iterator>
   </table>